<template>
	<view class="u-p-20">
		<view class="u-p-20 bg-white rounded-10">
			<text class="flex align-center justify-center u-font-28 font-weight-bold">{{info.title}}</text>
			<view class="u-m-t-30">
				<u-parse :html="info.contents" style="overflow:hidden;" :tag-style="{ img: 'display: block'}"></u-parse>
			</view>
		</view>
	</view>
</template>

<script>
	import { BaseCenterApi } from '@/api/serves.js'
	export default {
		data() {
			return {
				id: '',
				info: {}
			};
		},
		onLoad(options) {
			console.log(options);
			this.id = options.id
			BaseCenterApi.getNoticDetail({id: this.id}).then(res => {
			  console.log('获取公告详情', res);
			  if (res.code == 1) {
			    this.info = res.data[0]
			  }
			})
		}
	}
</script>

<style lang="scss" scoped>

</style>
